QT += widgets core widgets gui uitools opengl

# root
CM_PROJECT_ROOT_DIR = $${PWD}

TEMPLATE = lib
DEFINES += ASAPLIB_LIBRARY

CONFIG += c++17
		  
QML_IMPORT_PATH =

symbian:TARGET.UID3 = 0xE0C1E62F		  

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

     
INCLUDEPATH += $$PWD/../3rd-party/opencv453/build/include \
			   $$PWD/./ \
			   $$PWD/../3rd-party/opencv453/build/include/opencv2

CONFIG(debug, debug|release){
    TARGET = ASAPLib_d
	MOC_DIR  = ../debug  #指定moc命令将含Q_OBJECT的头文件转换成标准.h文件的存放目录
    DESTDIR = ../debug
    LIBS += -L$$PWD/../3rd-party/opencv453/build/x64/vc15/lib/ -lopencv_world453d \
			-L$$PWD/./dll/debug/ -lmultiresolutionimageinterface_d \
			-L$$PWD/./dll/debug/ -lcore_d
}

CONFIG(release, debug|release){
    TARGET = ASAPLib
	MOC_DIR  = ../release  #指定moc命令将含Q_OBJECT的头文件转换成标准.h文件的存放目录	
    DESTDIR = ../release    
    LIBS += -L$$PWD/../3rd-party/opencv453/build/x64/vc15/lib/ -lopencv_world453 \
			-L$$PWD/./dll/release/ -lmultiresolutionimageinterface \
			-L$$PWD/./dll/release/ -lcore
}

SOURCES +=  \
        $$files($${CM_PROJECT_ROOT_DIR}/*.cpp)
  
HEADERS +=  \
    $$files($${CM_PROJECT_ROOT_DIR}/*.h)

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target
